/**
 * Created by jy on 2014/8/1.
 */
var _ = require('underscore');
var sendAuto = function(req, res, result) {
  if (!_.isEmpty(req.query.callback)) {
    res.jsonp(result);
  } else {
    res.send(result);
  }
};
exports.sendAuto = sendAuto;